<?php
namespace Home\Model;
use Think\Model;
class TestModel extends  Model {
    protected $_validate = [
        ['nickname' , 'require' , '姓名必须要填写哦!'],
        ['qq' , 'require' , 'qq或微信你总有一个吧?'],
        ['phone' , 'require' , '手机号码必填'],
    ];
    protected $_auto = [
        ['answer','implode',3,'function']
    ];
}